import { DEFAULT_LAYOUT } from '../base'
import { AppRouteRecordRaw } from '../types'
import permissionType from "@/utils/permissionType";

const BASEDATA: AppRouteRecordRaw = {
  path: '/cjdata',
  name: 'cjdata',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: '车间数据',
    requiresAuth: true,
    icon: 'icon-menu',
    order: 2,
  },
  children: [
    {
      path: 'scviewrecord',
      name: 'scviewrecord',
      component: () => import('@/views/basedata/scviewrecord/index.vue'),
      meta: {
        locale: '数据操作',
        requiresAuth: true,
        roles: [permissionType.chenJianData_operate],
      },
    },
    {
      path: 'scviewrecordtb',
      name: 'scviewrecordTb',
      component: () => import('@/views/basedata/scviewrecord/tb.vue'),
      meta: {
        locale: '数据填报',
        requiresAuth: true,
        roles: [permissionType.chenJianData_operate],
        hideInMenu: true,
        ignoreCache: true
      },
    },
  ],
}

export default BASEDATA
